package com.hx.learn.log.log4j.config;

import org.apache.log4j.DailyRollingFileAppender;
import org.apache.log4j.Priority;

/**
 * @author jxlgcmh
 * @date 2020-03-29 09:49
 * @description
 */
public class AppenderConfig extends DailyRollingFileAppender {
    @Override
    public boolean isAsSevereAsThreshold(Priority priority) {
        return this.getThreshold().equals(priority);
    }
}
